package controller;

import org.springframework.web.bind.annotation.*;
import vo.AjaxResult;

/**
 * Author：汤小洋
 * Date：2023-12-18 10:44
 * Description：<描述>
 */
@RestController
@RequestMapping("/path")
public class PathController {

    @RequestMapping("/path1")
    public AjaxResult path1(){
        System.out.println("PathController.path1.................");
        return AjaxResult.success();
    }

    // @RequestMapping(value = "path2", method = RequestMethod.POST)
    @GetMapping("path2")
    public AjaxResult path2() throws ClassNotFoundException {
        System.out.println("PathController.path2..........");


        // int i=5/0;

        Class.forName("aa.bb");

        return AjaxResult.success();
    }

}
